package com.darker.secking.config;


import com.darker.secking.entity.User;

public class UserContext {
    private static ThreadLocal<User> userHoler=new ThreadLocal<>();

    public static User getUser() {
            return userHoler.get();
    }

    public static void setUser(User user) {
            userHoler.set(user);
    }
}
